package oa.service;

import java.util.List;

import oa.entity.User;
import oa.exception.DaoException;

public interface UserService {
	User userLogin(String name,String pwd);
	boolean addUser(User user) throws DaoException;//添加
	List<User> selectAllUser(User user,Integer pageNo, Integer row);//查询全部
	int selectAllUserCount(int deptid,int companyid) throws DaoException;//查询全部员工数
	List<User> selectUser(int userId,String userName,int deptId,int... companyId);//根据条件查询
	boolean updateUser(User user) throws DaoException;//更新信息
	boolean updateUserFuZe(User user) throws DaoException;//更新部门负责人
	boolean deleteUser(int userId);//删除
}
